import http from './http';

const login = (email, password) => {
    const path = '/auth/login';
    return http.post(path, { email, password });
}

const reSetPwd = (oldpwd, newpwd, pwd) =>{
    const path = '/auth/resetpwd';
    return http.post(path, { oldpwd, newpwd, pwd });
}

export default {
    login,
    reSetPwd
}